const int NPeak = 3;
bool SelPeak[NPeak] = {true, true, true};

// output tree
int evtid;
int runid;
double bunch_length;
int target;
double Ne, Ne1, Ne2, Ne3, Ne4, ped, t_beam_max, Ch1_max, Current;
double chi2_al, dt_al;

double vrms_sgn_ch1[NPeak],vrms_sgn_ch2[NPeak],vrms_sgn_ch3[NPeak],vrms_sgn_ch4[NPeak];
double vrms_bkg_ch1[NPeak],vrms_bkg_ch2[NPeak],vrms_bkg_ch3[NPeak],vrms_bkg_ch4[NPeak];
double vrms_sgn_ch1_fsel1[NPeak],vrms_sgn_ch2_fsel1[NPeak],vrms_sgn_ch3_fsel1[NPeak],vrms_sgn_ch4_fsel1[NPeak];
double vrms_bkg_ch1_fsel1[NPeak],vrms_bkg_ch2_fsel1[NPeak],vrms_bkg_ch3_fsel1[NPeak],vrms_bkg_ch4_fsel1[NPeak];
double vrms_sgn_ch1_fsel2[NPeak],vrms_sgn_ch2_fsel2[NPeak],vrms_sgn_ch3_fsel2[NPeak],vrms_sgn_ch4_fsel2[NPeak];
double vrms_bkg_ch1_fsel2[NPeak],vrms_bkg_ch2_fsel2[NPeak],vrms_bkg_ch3_fsel2[NPeak],vrms_bkg_ch4_fsel2[NPeak];

/*
double vrms_exp1_sgn_ch1[NPeak],vrms_exp1_sgn_ch2[NPeak],vrms_exp1_sgn_ch3[NPeak],vrms_exp1_sgn_ch4[NPeak];
double vrms_exp1_sgn_ch1_fsel1[NPeak],vrms_exp1_sgn_ch2_fsel1[NPeak],vrms_exp1_sgn_ch3_fsel1[NPeak],vrms_exp1_sgn_ch4_fsel1[NPeak];
double vrms_exp1_sgn_ch1_fsel2[NPeak],vrms_exp1_sgn_ch2_fsel2[NPeak],vrms_exp1_sgn_ch3_fsel2[NPeak],vrms_exp1_sgn_ch4_fsel2[NPeak];

double vrms_exp2_sgn_ch1[NPeak],vrms_exp2_sgn_ch2[NPeak],vrms_exp2_sgn_ch3[NPeak],vrms_exp2_sgn_ch4[NPeak];
double vrms_exp2_sgn_ch1_fsel1[NPeak],vrms_exp2_sgn_ch2_fsel1[NPeak],vrms_exp2_sgn_ch3_fsel1[NPeak],vrms_exp2_sgn_ch4_fsel1[NPeak];
double vrms_exp2_sgn_ch1_fsel2[NPeak],vrms_exp2_sgn_ch2_fsel2[NPeak],vrms_exp2_sgn_ch3_fsel2[NPeak],vrms_exp2_sgn_ch4_fsel2[NPeak];
*/

double vrms_dedx_exp1_sgn_ch1[NPeak],vrms_dedx_exp1_sgn_ch2[NPeak],vrms_dedx_exp1_sgn_ch3[NPeak],vrms_dedx_exp1_sgn_ch4[NPeak];
double vrms_dedx_exp1_sgn_ch1_fsel1[NPeak],vrms_dedx_exp1_sgn_ch2_fsel1[NPeak],vrms_dedx_exp1_sgn_ch3_fsel1[NPeak],vrms_dedx_exp1_sgn_ch4_fsel1[NPeak];
double vrms_dedx_exp1_sgn_ch1_fsel2[NPeak],vrms_dedx_exp1_sgn_ch2_fsel2[NPeak],vrms_dedx_exp1_sgn_ch3_fsel2[NPeak],vrms_dedx_exp1_sgn_ch4_fsel2[NPeak];

double vrms_dedx_exp2_sgn_ch1[NPeak],vrms_dedx_exp2_sgn_ch2[NPeak],vrms_dedx_exp2_sgn_ch3[NPeak],vrms_dedx_exp2_sgn_ch4[NPeak];
double vrms_dedx_exp2_sgn_ch1_fsel1[NPeak],vrms_dedx_exp2_sgn_ch2_fsel1[NPeak],vrms_dedx_exp2_sgn_ch3_fsel1[NPeak],vrms_dedx_exp2_sgn_ch4_fsel1[NPeak];
double vrms_dedx_exp2_sgn_ch1_fsel2[NPeak],vrms_dedx_exp2_sgn_ch2_fsel2[NPeak],vrms_dedx_exp2_sgn_ch3_fsel2[NPeak],vrms_dedx_exp2_sgn_ch4_fsel2[NPeak];
